package com.deepocean.dao;

import com.deepocean.entity.*;
import com.deepocean.entity.process.LinearScreenProcessEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 直线筛
 */
@Mapper
public interface LinearScreenDao {
    /**
     * 跳汰机添加数据
     * @param linearScreenEntity
     * @return
     */
    boolean add(LinearScreenEntity linearScreenEntity);

    /**
     * 当前时间开始，进一小时数据总和
     * @param deviceId
     * @return
     */
    LinearScreenInAndOut1Hour getInAndOutInHour(String deviceId);

    /**
     * 条件查询
     * @param linearScreenCondition
     * @return
     */
    List<LinearScreenEntity> getLinearScreenByCondition(LinearScreenCondition linearScreenCondition);

    boolean addProcess(LinearScreenProcessEntity linearScreenProcessEntity);
}
